/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package icantalk;


/**
 * A User class.
 * This class holds information about the user.
 * @author orfrenkel 
 */
public class User implements java.io.Serializable
{
	private String userName;
	/** hostname String Holds the host name.*/	
	public String hostname;
	/** isOnline int Notifies if the user is online or not.*/
	public int isOnline;
	public boolean isConference=false;

	

	/**
	 *  A constructor.
	 * Gets user name, host name, and an "isOnline" flag.
	 * @param userName insert user name to the User "userName".
	 * @param hostname insert host name to the User "hostname".
	 * @param isOnline insert the user online status to the User "isOnline".
	 */
	public User(String userName,String hostname,int isOnline)
	{
		this.hostname=hostname;
		this.userName=userName;
		this.isOnline = isOnline;
	}

	/** Returns the user name.
	 * @return userName */
	public String toString() {
		return userName;
	}
	
	public String getUserName()
	{
		return userName;
	}
}